<template>
  <view>
<!-- <view class="search-box" > -->
<!-- <uni-section title="基本用法" type="line"  >
 			<uni-search-bar @confirm="search" @input="input" :radius="100" cancelButton="none" >
 			</uni-search-bar> 
 		</uni-section>
</view>
<view class="sugg-list">
  <view class="sugg-item">
    <view class="goods-name"></view>
  </view>
  <view class="history-box">
    <view class="history-tilte">
      <text>搜索历史</text>
      <uni-icons type="treah" size="17"></uni-icons>
    </view> 
  <view class="history-list">
      <uni-tag :text="item" v-for="{item,i} in histopythis"  :key="i"/>
    </view>
  </view>
</view> -->
</view>
</template>

<script>
  export default{
    data(){
      return{
        timer:null,
        kw:'',
        // saerchResules[]
        histopythis:[
          'a',
          'b',
          'c',
        ]
      };
    },
    methods:{
      input(e){
        clearTimeout(this.thimer)
       this.thimer= setTimeout(()=>{
          // console.log(e.value)
          this.kw=e.value
          // this.getSearchList()
        },500)
      }
      // getSearchList(){
      //   if(this.kw.length===0)
      //   this.saerchResules=[]
      //   return
      // }
    }
  }
</script>

<style>
  .search-box{
    position: static;
    top: 0;
    z-index: 999;
  }
  .sugg-list{
    padding: 0 5px;
  }
  .sugg-item{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #efefef;
  }
</style>
